package com.hero.jobweb.dao.ibatis;

import com.hero.jobweb.dao.ITbResumeToEnterpriseHistoryDAO;
import com.hero.jobweb.entity.TbResumeToEnterpriseHistory;
import com.hero.jobweb.entity.TbResumeToEnterpriseHistoryExample;
import com.hero.web.dao.IbatisBaseDao;
import java.util.List;

public class TbResumeToEnterpriseHistoryDAOImpl extends IbatisBaseDao<TbResumeToEnterpriseHistory, TbResumeToEnterpriseHistoryExample> implements ITbResumeToEnterpriseHistoryDAO {

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table tb_resume_to_enterprise_history11
     *
     * @ibatorgenerated Thu Jun 09 06:46:24 GMT 2011
     */
    public TbResumeToEnterpriseHistoryDAOImpl() {
        super();
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table tb_resume_to_enterprise_history11
     *
     * @ibatorgenerated Thu Jun 09 06:46:24 GMT 2011
     */
    public int countByExample(TbResumeToEnterpriseHistoryExample example) {
        Integer count = (Integer)  getSqlMapClientTemplate().queryForObject("tb_resume_to_enterprise_history.ibatorgenerated_countByExample", example);
        return count;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table tb_resume_to_enterprise_history11
     *
     * @ibatorgenerated Thu Jun 09 06:46:24 GMT 2011
     */
    public int deleteByExample(TbResumeToEnterpriseHistoryExample example) {
        int rows = getSqlMapClientTemplate().delete("tb_resume_to_enterprise_history.ibatorgenerated_deleteByExample", example);
        return rows;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table tb_resume_to_enterprise_history11
     *
     * @ibatorgenerated Thu Jun 09 06:46:24 GMT 2011
     */
    public int deleteByPrimaryKey(Integer id) {
        TbResumeToEnterpriseHistory key = new TbResumeToEnterpriseHistory();
        key.setId(id);
        int rows = getSqlMapClientTemplate().delete("tb_resume_to_enterprise_history.ibatorgenerated_deleteByPrimaryKey", key);
        return rows;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table tb_resume_to_enterprise_history11
     *
     * @ibatorgenerated Thu Jun 09 06:46:24 GMT 2011
     */
    public void insert(TbResumeToEnterpriseHistory record) {
        getSqlMapClientTemplate().insert("tb_resume_to_enterprise_history.ibatorgenerated_insert", record);
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table tb_resume_to_enterprise_history11
     *
     * @ibatorgenerated Thu Jun 09 06:46:24 GMT 2011
     */
    public void insertSelective(TbResumeToEnterpriseHistory record) {
        getSqlMapClientTemplate().insert("tb_resume_to_enterprise_history.ibatorgenerated_insertSelective", record);
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table tb_resume_to_enterprise_history11
     *
     * @ibatorgenerated Thu Jun 09 06:46:24 GMT 2011
     */
    @SuppressWarnings("unchecked")
    public List<TbResumeToEnterpriseHistory> selectByExample(TbResumeToEnterpriseHistoryExample example) {
        List<TbResumeToEnterpriseHistory> list = getSqlMapClientTemplate().queryForList("tb_resume_to_enterprise_history.ibatorgenerated_selectByExample", example);
        return list;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table tb_resume_to_enterprise_history11
     *
     * @ibatorgenerated Thu Jun 09 06:46:24 GMT 2011
     */
    public TbResumeToEnterpriseHistory selectByPrimaryKey(Integer id) {
        TbResumeToEnterpriseHistory key = new TbResumeToEnterpriseHistory();
        key.setId(id);
        TbResumeToEnterpriseHistory record = (TbResumeToEnterpriseHistory) getSqlMapClientTemplate().queryForObject("tb_resume_to_enterprise_history.ibatorgenerated_selectByPrimaryKey", key);
        return record;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table tb_resume_to_enterprise_history11
     *
     * @ibatorgenerated Thu Jun 09 06:46:24 GMT 2011
     */
    public int updateByExampleSelective(TbResumeToEnterpriseHistory record, TbResumeToEnterpriseHistoryExample example) {
        UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
        int rows = getSqlMapClientTemplate().update("tb_resume_to_enterprise_history.ibatorgenerated_updateByExampleSelective", parms);
        return rows;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table tb_resume_to_enterprise_history11
     *
     * @ibatorgenerated Thu Jun 09 06:46:24 GMT 2011
     */
    public int updateByExample(TbResumeToEnterpriseHistory record, TbResumeToEnterpriseHistoryExample example) {
        UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
        int rows = getSqlMapClientTemplate().update("tb_resume_to_enterprise_history.ibatorgenerated_updateByExample", parms);
        return rows;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table tb_resume_to_enterprise_history11
     *
     * @ibatorgenerated Thu Jun 09 06:46:24 GMT 2011
     */
    public int updateByPrimaryKeySelective(TbResumeToEnterpriseHistory record) {
        int rows = getSqlMapClientTemplate().update("tb_resume_to_enterprise_history.ibatorgenerated_updateByPrimaryKeySelective", record);
        return rows;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table tb_resume_to_enterprise_history11
     *
     * @ibatorgenerated Thu Jun 09 06:46:24 GMT 2011
     */
    public int updateByPrimaryKey(TbResumeToEnterpriseHistory record) {
        int rows = getSqlMapClientTemplate().update("tb_resume_to_enterprise_history.ibatorgenerated_updateByPrimaryKey", record);
        return rows;
    }

    /**
     * This class was generated by Apache iBATIS ibator.
     * This class corresponds to the database table tb_resume_to_enterprise_history11
     *
     * @ibatorgenerated Thu Jun 09 06:46:24 GMT 2011
     */
    private static class UpdateByExampleParms extends TbResumeToEnterpriseHistoryExample {
        private Object record;

        public UpdateByExampleParms(Object record, TbResumeToEnterpriseHistoryExample example) {
            super(example);
            this.record = record;
        }

        public Object getRecord() {
            return record;
        }
    }
}